*
* Purpose: add capacity class
* 

gen capacity_class = 21
replace capacity_class = 1 if field_study == 1 & ///
							  program_level == 1 & ///
							  (munkarend == 1 | munkarend == 2 | munkarend == 3)
							  
replace capacity_class = 2 if field_study == 1 & ///
							  program_level == 3 & ///
							  (munkarend == 1 | munkarend == 2 | munkarend == 3)
replace capacity_class = 3 if field_study == 2 & ///
							  program_level == 1 & ///
							  (munkarend == 1 | munkarend == 2 | munkarend == 3)
replace capacity_class = 4 if field_study == 3 & ///
							  program_level == 1 & ///
							  (munkarend == 1 | munkarend == 2 | munkarend == 3)
replace capacity_class = 5 if field_study == 5 & ///
							  program_level == 1 & ///
							  (munkarend == 1 | munkarend == 2 | munkarend == 3)
replace capacity_class = 6 if field_study == 6 & ///
							  program_level == 1 & ///
							  (munkarend == 1 | munkarend == 2 | munkarend == 3)
replace capacity_class = 7 if field_study == 6 & ///
							  program_level == 3 & ///
							  (munkarend == 1 | munkarend == 2 | munkarend == 3)
replace capacity_class = 8 if field_study == 8 & ///
							  program_level == 1 & ///
							  (munkarend == 1 | munkarend == 2 | munkarend == 3)
replace capacity_class = 9 if field_study == 8 & ///
							  program_level == 3 & ///
							  (munkarend == 1 | munkarend == 2 | munkarend == 3)				  
replace capacity_class = 10 if field_study == 9 & ///
							  program_level == 1 & ///
							  (munkarend == 1 | munkarend == 2 | munkarend == 3)				  
replace capacity_class = 11 if field_study == 9 & ///
							  program_level == 3 & ///
							  (munkarend == 1 | munkarend == 2 | munkarend == 3)				  
replace capacity_class = 12 if field_study == 10 & ///
							  program_level == 1 & ///
							  (munkarend == 1 | munkarend == 2 | munkarend == 3)				  
replace capacity_class = 13 if field_study == 11 & ///
							  program_level == 1 & ///
							  (munkarend == 1 | munkarend == 2 | munkarend == 3)				  							  
replace capacity_class = 14 if field_study == 11 & ///
							  program_level == 3 & ///
							  (munkarend == 1 | munkarend == 2 | munkarend == 3)				  							  
replace capacity_class = 15 if field_study == 12 & ///
							  program_level == 1 & ///
							  (munkarend == 1 | munkarend == 2 | munkarend == 3)				  							  							  
replace capacity_class = 15 if field_study == 12 & ///
							  program_level == 1 & ///
							  (munkarend == 1 | munkarend == 2 | munkarend == 3)				  							  							  
replace capacity_class = 16 if field_study == 13 & ///
							  program_level == 1 & ///
							  (munkarend == 1 | munkarend == 2 | munkarend == 3)				  							  							  
replace capacity_class = 17 if field_study == 14 & ///
							  program_level == 1 & ///
							  (munkarend == 1 | munkarend == 2 | munkarend == 3)				  							  							  
replace capacity_class = 18 if field_study == 15 & ///
							  program_level == 1 & ///
							  (munkarend == 1 | munkarend == 2 | munkarend == 3)				  							  							  
replace capacity_class = 19 if program_level == 5 & ///
							  (munkarend == 1 | munkarend == 2 | munkarend == 3)				  							  							  
replace capacity_class = 20 if field_study == 7 & ///
							  program_level == 1 & ///
							  (munkarend == 1 | munkarend == 2 | munkarend == 3)
							  
label define capacity_class 1 "Agriculture - BA" ///
							2 "Agriculture - Undivided" ///
							3 "Humanities - BA" ///
							4 "Business and Economics - BA" ///
							5 "Computer science - BA " ///
							6 "Legal studies - BA" ///
							7 "Legal studies - Undivided" ///
							8 "Engineering - BA" ///
							9 "Engineering - Undivided" ///
							10 "Art - BA" ///
							11 "Art - Undivided" ///
							12 "Art mediation - BA" ///
							13 "Health - BA" ///
							14 "Health - Undivided" ///
							15 "Pedagogy - BA" ///
							16 "Sport - BA" ///
							17 "Natural science - BA" ///
							18 "Social science - BA" ///
							19 "Terciary vocational" ///
							20 "Security - BA" ///
							21 "Other"
							
label values capacity_class capacity_class

